<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>登陆</title>

    <link href="/static/admin/css/public/style.css" rel="stylesheet">
    <link href="/static/admin/css/public/style-responsive.css" rel="stylesheet">
    <link href="/static/admin/css/public/loading.css" rel="stylesheet">

    <script src="/static/admin/js/public/html5shiv.js"></script>
    <script src="/static/admin/js/public/plugs/respond.min.js"></script>
    <style type="text/css">
        #loginError{
            height: 30px;
            color: red;
            text-align: center;
            margin-top: -20px;
        }
        #loginTable{
            width: 100%;
        }
        #loginTable .fa{
            display: none;
            margin-left: 4px;
            margin-bottom: 15px;
        }
        #loginTable input{
            border: 1px solid #C0C0C0;
        }
    </style>
</head>

<body class="login-body">

<div class="container">

    <div class="form-signin">
        <div class="form-signin-heading text-center">
            <img src="/static/admin/img/public/login-logo.png" alt=""/>
        </div>
        <div class="login-wrap">
            <div id="loginError"></div>
            <table id="loginTable" style="width: 100%;">
                <tr>
                    <td>
                        <input type="text" id="loginName" onkeydown="enter_login()" class="form-control" placeholder="帐号">
                    </td>
                    <td>
                        <span class="fa fa-check" id="nOk" style="color: green; "></span>
                        <span class="fa fa-times" id="nError" style="color: red;"></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="password" id="loginPwd" onkeydown="enter_login()" class="form-control" placeholder="密码">
                    </td>
                    <td>
                        <span class="fa fa-check" id="pOk" style="color: green;"></span>
                        <span class="fa fa-times" id="pError" style="color: red;"></span>
                    </td>
                </tr>
            </table>
            <button class="btn btn-lg btn-login btn-block" onclick="login()">
                <i class="fa fa-key"></i>
            </button>
        </div>

    </div>

    <!--<div class="registration">
        还没有帐号?
        <a class="" href="./pages/admin/registration.html">注册</a>
    </div>-->
    <!--<label class="checkbox">
        <span class="pull-right">
            <a data-toggle="modal" href="#myModal"> 忘记密码?</a>
        </span>
    </label>-->


    <!-- Modal -->
    <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal" class="modal fade">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title">忘记密码 ?</h4>
                </div>
                <div class="modal-body">
                    <p>Enter your e-mail address below to reset your password.</p>
                    <input type="text" name="email" placeholder="Email" autocomplete="off" class="form-control placeholder-no-fix">

                </div>
                <div class="modal-footer">
                    <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
                    <button class="btn btn-primary" type="button">提交</button>
                </div>
            </div>
        </div>
    </div>
    <!-- modal -->
</div>

<div class="sk-circle" id="load" style="top: 20%; left: 48%; display: none;">
    <div class="sk-circle1 sk-child"></div>
    <div class="sk-circle2 sk-child"></div>
    <div class="sk-circle3 sk-child"></div>
    <div class="sk-circle4 sk-child"></div>
    <div class="sk-circle5 sk-child"></div>
    <div class="sk-circle6 sk-child"></div>
    <div class="sk-circle7 sk-child"></div>
    <div class="sk-circle8 sk-child"></div>
    <div class="sk-circle9 sk-child"></div>
    <div class="sk-circle10 sk-child"></div>
    <div class="sk-circle11 sk-child"></div>
    <div class="sk-circle12 sk-child"></div>
</div>

<script src="/static/admin/js/public/jquery-1.10.2.min.js"></script>
<script src="/static/admin/js/public/plugs/bootstrap.min.js"></script>
<script src="/static/admin/js/public/plugs/modernizr.min.js"></script>
<script src="/static/admin/js/login.js"></script>
<script>
    $(function(){
        if(navigator.userAgent.toLowerCase().indexOf("chrome") != -1){
            var selectors = document.getElementsByTagName("input");
            for(var i=0;i<selectors.length;i++){
                if((selectors[i].type !== "submit") && (selectors[i].type !== "password")){
                    selectors[i].value = " ";
                }
            }
            setTimeout(function(){
                for(var i=0;i<selectors.length;i++){
                    if(selectors[i].type !== "submit"){
                        selectors[i].value = "";
                    }
                }
            },100)
        }
    })
</script>

</body>
</html>
